package com.iye.puretennis.custom.draggablegridview;

/**
 * Created with IntelliJ IDEA.
 * User: jing wu
 * Date: 2015/1/16
 * Time: 10:00
 */
public interface DynamicGridAdapterInterface {

    /**
     * Determines how to reorder items dragged from <code>originalPosition</code> to <code>newPosition</code>
     */
    void reorderItems(int originalPosition, int newPosition);

    /**
     * @return return columns number for GridView. Need for compatibility
     * (@link android.widget.GridView#getNumColumns() requires api 11)
     */
    int getColumnCount();
}
